#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <assert.h>
static char* my_strcpy(char* arr1, const char* arr)
{
	assert(arr != NULL);
	assert(arr1 != NULL);
	char* test = arr1;
	while (*arr1++ = *arr++)
	{
		;
	}
	return test;
}
static char* my_strcpy1(char* arr1, const char* arr)
{
	assert(arr != NULL);
	assert(arr1 != NULL);
	char* test = arr1;
	while (*arr != '\0')
	{
		*arr1 = *arr;
		arr1++;
		arr ++;
	}
	*arr1 = *arr;
	return test;
}

int main()
{
	const char arr[10] = "Hello";
	char arr1[15] = { 0 };
	strcpy(arr1, arr);
	my_strcpy(arr1, arr);
	printf("%s", arr1);
	return 0;
}